//
//  BaseViewController.h
//  TouMingChuFangApp
//
//  Created by yuntai on 2017/10/26.
//  Copyright © 2017年 yuntai. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <MapKit/MapKit.h>

@interface BaseViewController : UIViewController

@property (nonatomic, assign) NSInteger currentPage;

@property (strong,nonatomic) CLLocationManager* locationManager;
@property (nonatomic, assign) BOOL isLoginIMing;// 正在登录IM中 YES时不可以再次执行IM登录操作

@property (nonatomic, copy) NSString *userX;
@property (nonatomic, copy) NSString *userY;
@property (nonatomic, strong) UIViewController *popvc;

- (void)setBackBtn;

- (void)setBackBtnEventHandler:(void (^)(id sender))handler;

- (void)setLeftBtnImage:(UIImage *)btnImage eventHandler:(void (^)(id sender))handler;

- (void)setLeftBtnImage:(UIImage *)btnImage Size:(CGSize)size eventHandler:(void (^)(id sender))handler;

-(void)setLeftBtn:(NSString *)btnTitle eventHandler:(void (^)(id sender))handler;

-(void)setLeftBtn:(NSString *)btnTitle imageName:(NSString *)imagename eventHandler:(void (^)(id sender))handler;
- (void)updateLeftItemWith:(NSString *)title;
- (void)setRightBtn:(NSString *)btnTitle eventHandler:(void (^)(id sender))handler;

- (void)setRightBtnImage:(UIImage *)btnImage eventHandler:(void (^)(id sender))handler;

- (void)setRightBtnImage:(UIImage *)btnImage Size:(CGSize)size eventHandler:(void (^)(id sender))handler;

- (void)setCenterTitle:(NSString *)title;

- (void)setCenterBtnImage:(UIImage *)btnImage Size:(CGSize)size eventHandler:(void (^)(id sender))handler;

- (void)deleteLeftBarItem;

- (void)deleteRightBarItem;

- (void)deleteCenterView;

- (void)setCenterSearchViewWithDelegete:(id)delegate;

- (void)setNaviBackBtn;
-(void)textFieldDidChange :(UITextField *)theTextField;

#if TangShanTongJiAPPFull==1

-(void)loginXmppServer;

#endif
@end
